package org.wicketstuff.viewstack.common;

import org.apache.wicket.MarkupContainer;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.model.IModel;
/**
 * 
 * @author fernando wermus
 *
 */
public class ViewStackWithForm extends ViewStack {
	private static final long serialVersionUID = 1650382560227285131L;

	public ViewStackWithForm(String id, IModel model) {
		super(id, model);
		setOutputMarkupId(true);
		add(new Form("form"));
		//getContainer().addOrReplace(new EmptyPanel(ACTIVE_VIEW));
		getContainer().add(new FeedbackPanel("feedback").setOutputMarkupId(true));
	}

	@Override
	public MarkupContainer getContainer() {
		return (MarkupContainer) get("form");
	}
}
